package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckGroup;
import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Dugen.Zhu
 * @date 2020-01-01 1:22
 */
public interface SetmealDao {

    Setmeal findByCodeOrName(@Param("code") String code, @Param("name") String name);

    void add(Setmeal setmeal);

    void addSetmealWithGroupRelate(@Param("setmealId")Integer setmealId, @Param("checkgroupIds")Integer[] checkgroupIds);

    Page<Setmeal> findPage();

    Page<Setmeal> findPageByCondition(String queryString);

    List<Setmeal> getAll();

    Setmeal findById(Integer id);
}
